import { Alova } from '@/utils/http/alova/index';

//获取table
export function getCourse(params: any) {
  return Alova.Post('/admin/course', params);
}

export function putCourse(params: any) {
  return Alova.Put('/admin/course', params);
}

export function patchCourse(params: any) {
  return Alova.Patch('/admin/course', params);
}

export function getCourseInfo(id: number) {
  return Alova.Get('/admin/course/' + id);
}

export function deleteCourse(id: number) {
  return Alova.Delete('/admin/course/' + id);
}
